﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuanLiHinh.aspx.cs" Inherits="Admin_QuanLiHinh" %>

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">



        .style1
        {
            background-color: #FFFFFF;
            color: #3399FF;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Menu ID="Menu2" runat="server" BackColor="#B5C7DE" DataSourceID="Menu4" 
        DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="12px" 
        ForeColor="#284E98" Orientation="Horizontal" StaticSubMenuIndent="10px" 
        Width="100%">
        <StaticSelectedStyle BackColor="#507CD1" />
        <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
        <DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
        <DynamicMenuStyle BackColor="#B5C7DE" />
        <DynamicSelectedStyle BackColor="#507CD1" />
        <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
        <StaticHoverStyle BackColor="#284E98" ForeColor="White" />
    </asp:Menu>
    <asp:SiteMapDataSource ID="Menu4" runat="server" ShowStartingNode="False" 
        SiteMapProvider="Menu4" />
    <p>
        <br />
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
    
   
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataKeyNames="MaHinhAnh" DataSourceID="SqlDataSource1" 
        EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            onrowcommand="GridView1_RowCommand">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="MaHinhAnh" HeaderText="MaHinhAnh" 
                SortExpression="MaHinhAnh" ReadOnly="True" />
            <asp:BoundField DataField="HinhAnh" HeaderText="HinhAnh" 
                SortExpression="HinhAnh" />
                <asp:ButtonField CommandName="select" Text="Sửa lại" />
                <asp:ButtonField CommandName="del" Text="Xóa" />
        </Columns>
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
    </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT * FROM [tbl_HinhAnh]"></asp:SqlDataSource>
        <p>
        Hình ảnh<asp:FileUpload ID="FileUpload1" runat="server" />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            Text="Tải lên" style="height: 26px" />
        <asp:Label ID="lbThongbaoKQ" runat="server"></asp:Label>
    </p>
    <p>
        <asp:TextBox ID="txtPath" runat="server" Width="343px"></asp:TextBox>
    </p>
    <br />
    <asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
        Text="Lưu tin" />
    
        <br />
        <br />
        <span class="style1">
        <asp:Button 
        ID="Button3" runat="server" onclick="Button3_Click" Text="Đăng xuất" />
    </span>
    
    <p>
        &nbsp;</p>
    <div>
    
    </div>
    </form>
</body>
</html>
